package cn.zust.edu.cn.pojo;


import cn.zust.edu.cn.service.IShape;

public class Circle implements IShape {
    Point ptCenter;

    private int radius;

    public Circle(Point center, int r) {
        ptCenter=center;
        radius=r;
    }

    public int getRadius() {
        return radius;
    }

    public void setRadius(int radius) {
        this.radius = radius;
    }


    @Override
    public double perimeter(){
        return 2*3.14*radius;
    }

    @Override
    public double area(){

        return radius*radius*3.14;
    }

    @Override
    public void draw(){
        System.out.println("circle");
    }

}
